Telegram Group & Telegram Channel
Forwarded from Raspberry Project
اولین پروژه با میکروپایتون را شروع کنید!!!!


برد میکروپایتون را راه اندازی کنید و وارد صفحه ترمینال IDLE Python شوید .

ابتدا کتابخانه Machine را فراخوانی کنید

>>import machine

و سپس یکی از پینهای برد را به حالت خروجی تنظیم میکنیم

>>led = machine.Pin(Pin Number, machine.Pin.OUT)

در دستور بالا به جای
Pin Number

شماره پین مورد نظر را وارد کنید

..با دستور زیر میتوانید led متصل به پین مورد نظر را روشن کنید . یا به عبارتی پین مورد نظر را 1 کنید .

>>led.high()

و با دستور زیر میتوانید Pin را به حالت ۰منطقی و یا خاموش ببرید

>>led.low()

تا اینجا به صورتی دستی توانستیم یک پین را ۰ و ۱ کنیم . حال میخواهیم چروژه چشمک زن را به صورت اتوماتیک اجرا کنیم .

کتابخانه Time را جهت ایجاد تاخیر فراخوانی میکنیم

>>import time

و به کمک یک حلقه بینهایت میتوانید این عملیات چشمک زدن را اجرا نمایید

>> while True:
led.high()
time.sleep(0.5)
led.low()
time.sleep(0.5)


پایان اولین پروژه با میکرو پایتون

اسکریپت به صورت کامل 👇👇👇

#BLINK MICRO PYTHON
#--------------------------
import machine
import time
led = machine.Pin(15,machine.Pin.OUT)
while True:
led.high()
time.sleep(0.5)
led.low()
time.sleep(0.5)
#--------------------------
# On behalf of Eng Meysam Mz
#---------------------------


@Raspberryproject
@Raspberry_Python
@micropython_iot



tg-me.com/micropython_iot/33
Create:
Last Update:

اولین پروژه با میکروپایتون را شروع کنید!!!!


برد میکروپایتون را راه اندازی کنید و وارد صفحه ترمینال IDLE Python شوید .

ابتدا کتابخانه Machine را فراخوانی کنید

>>import machine

و سپس یکی از پینهای برد را به حالت خروجی تنظیم میکنیم

>>led = machine.Pin(Pin Number, machine.Pin.OUT)

در دستور بالا به جای
Pin Number

شماره پین مورد نظر را وارد کنید

..با دستور زیر میتوانید led متصل به پین مورد نظر را روشن کنید . یا به عبارتی پین مورد نظر را 1 کنید .

>>led.high()

و با دستور زیر میتوانید Pin را به حالت ۰منطقی و یا خاموش ببرید

>>led.low()

تا اینجا به صورتی دستی توانستیم یک پین را ۰ و ۱ کنیم . حال میخواهیم چروژه چشمک زن را به صورت اتوماتیک اجرا کنیم .

کتابخانه Time را جهت ایجاد تاخیر فراخوانی میکنیم

>>import time

و به کمک یک حلقه بینهایت میتوانید این عملیات چشمک زدن را اجرا نمایید

>> while True:
led.high()
time.sleep(0.5)
led.low()
time.sleep(0.5)


پایان اولین پروژه با میکرو پایتون

اسکریپت به صورت کامل 👇👇👇

#BLINK MICRO PYTHON
#--------------------------
import machine
import time
led = machine.Pin(15,machine.Pin.OUT)
while True:
led.high()
time.sleep(0.5)
led.low()
time.sleep(0.5)
#--------------------------
# On behalf of Eng Meysam Mz
#---------------------------


@Raspberryproject
@Raspberry_Python
@micropython_iot

BY Micropython & IOT


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/micropython_iot/33

View MORE
Open in Telegram


Micropython & IOT Telegram | DID YOU KNOW?

Date: |

Importantly, that investor viewpoint is not new. It cycles in when conditions are right (and vice versa). It also brings the ineffective warnings of an overpriced market with it.Looking toward a good 2022 stock market, there is no apparent reason to expect these issues to change.

Telegram hopes to raise $1bn with a convertible bond private placement

The super secure UAE-based Telegram messenger service, developed by Russian-born software icon Pavel Durov, is looking to raise $1bn through a bond placement to a limited number of investors from Russia, Europe, Asia and the Middle East, the Kommersant daily reported citing unnamed sources on February 18, 2021.The issue reportedly comprises exchange bonds that could be converted into equity in the messaging service that is currently 100% owned by Durov and his brother Nikolai.Kommersant reports that the price of the conversion would be at a 10% discount to a potential IPO should it happen within five years.The minimum bond placement is said to be set at $50mn, but could be lowered to $10mn. Five-year bonds could carry an annual coupon of 7-8%.

Micropython & IOT from hk


Telegram Micropython & IOT
FROM USA